package com.example.sb.service;

import com.example.sb.entity.User;
import com.example.sb.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public void insertuser(User user){
        userMapper.insert(user);
    }

    public void updateuser(User user) {
        userMapper.updateuser(user);
    }

    public void deleteUser(Integer id) {
        userMapper.deleteUser(id);
    }
}
